package com.cup.ali.sms.bean;

import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;

import lombok.Data;

/**
 * 短消息回执信息
 */
@Data
public class SmsResponse {

	private String code;
	private String message;
	private String requestId;
	private String bizId;

	public static  SmsResponse buildResponse(SendSmsResponse response){
		SmsResponse bean = new SmsResponse();
		bean.setCode( response.getCode());
		bean.setMessage(response.getMessage());
		bean.setRequestId(response.getRequestId());
		bean.setBizId(response.getBizId());
		return bean;
    }
}
